Dynomotion

Group: DynoMotion Message: 1231 From: b.burig@yahoo.com Date: 6/1/2011
Subject: I need a pulse train at 60 Hz
The pulse train needs to be 5 volt, 400 microsec wide pulses, at 60 Hz for 90 seconds. What is the rise time on a Kanalog relay driver. How about an Opto-Iso output.
Group: DynoMotion Message: 1232 From: Tom Kerekes Date: 6/1/2011
Subject: Re: I need a pulse train at 60 Hz
Try this:
 
#include "KMotionDef.h"
#define BIT 46
main()
{
     double T0=Time_sec();  //starting time
     double T1=T0;
 
    do
    {
        // generate ~360us pulse
        SetBit(BIT);
        WaitNextTimeSlice();  // each is 180us
        WaitNextTimeSlice();
        ClearBit(BIT);
        T1 += 1.0/60.0;  // advance one period
        WaitUntil(T1);
    }while (T1 < T0+90.0);
}

 
 
--- On Wed, 6/1/11, b.burig@... <b.burig@...> wrote:

From: b.burig@... <b.burig@...>
Subject: [DynoMotion] I need a pulse train at 60 Hz
To: DynoMotion@yahoogroups.com
Date: Wednesday, June 1, 2011, 2:29 PM

 
The pulse train needs to be 5 volt, 400 microsec wide pulses, at 60 Hz for 90 seconds. What is the rise time on a Kanalog relay driver. How about an Opto-Iso output.